package com.springStudy.boot.redis.firstDemo;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;

import java.util.ArrayList;
import java.util.List;

@SpringBootApplication(scanBasePackages = "com.springStudy.boot.redis.firstDemo")

public class FirstDemoApp {
    private static ApplicationContext applicationContext;

    private static final Logger log = LoggerFactory.getLogger(FirstDemoApp.class);

    public static void main(String[] args) {
        System.setProperty("server.port", "9080");

        applicationContext = SpringApplication.run(FirstDemoApp.class);
        List<Integer> list = new ArrayList<>();
        list.add(111);
        list.add(222);
        System.out.println("环境变量:"+list);
        log.info("环境变量={}", list);

        System.out.println("started");

    }

}
